package com.it.myd.controller.main.date;

import com.it.myd.bean.box.UserSex;
import com.it.myd.bean.main.ReturnValue;
import com.it.myd.bean.main.User;
import com.it.myd.service.main.date.GetDictDateService;
import com.it.myd.service.main.user.UserChangerService;
import jakarta.servlet.ServletContext;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Controller
@RequestMapping("/date/dictdate")
public class GetDictDateController {
    @Autowired
    private GetDictDateService getDDService;

    @RequestMapping("getUserSexList")
    @ResponseBody
    public ReturnValue getUserSexList(){
        List<UserSex> list = getDDService.getUserSexList();
        ReturnValue<UserSex> ret = new ReturnValue<>();
        ret.setRetList(list);
        return ret;
    }



}
